Release of v2.0.5#81
Conversation
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
- Remove deprecated `baseUrl` and update `moduleResolution` to `Bundler` in tsconfig.json
- Add `rootDir: src` to tsconfig.json to fix declaration output layout
- Replace ky internal path imports with public entry point in HttpClient.ts and RepositoryHttp.ts
- Fix relative import path for `types` in vue/index.ts (`src/types` → `../types`)
- Add explicit `unknown` type to catch callback parameters in vue/index.ts
- Fix `this[method]` implicit-any with explicit cast in HttpClient.ts
- Fix `User` class example in README (wrong property assignment)
- Fix `{{ data.name }}` → `{{ item?.name }}` in README Example 2 template
- Add missing `requestHead()` to useHttpClient exposed methods list in README
- Update CHANGELOG with v2.0.5
fix: TypeScript 6 compatibility and README corrections
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
- RepositoryHttp default metadata adapter no longer drops `contentLanguage` when both Content-Language and Accept-Language headers are present - expose `item` ref from useRepositoryHttp `create()` and `update()`, consistently with `read()` - align `HttpClientInstance.setBearerToken` type with its implementation - refactor RepositoryHttp `create`/`update` into a shared `_write` and the vue composables into a single `defineRepositoryRequest` helper (DRY) - replace the unsafe cast in `HttpClient.request` with a typed verb dispatch - type-check and tests now cover the `test/` folder; declaration emit moved to a dedicated `tsconfig.build.json` - move pnpm `onlyBuiltDependencies` to pnpm-workspace.yaml - document the upcoming ky 2.x / `prefix` breaking change under 3.0.0 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
`pnpm version --no-git-tag-version` was run unconditionally in the reusable build workflow. On pull_request runs `github.event.release.tag_name` is empty, so the command failed with ERR_PNPM_INVALID_VERSION_BUMP. Guard the step so it runs only when triggered by a release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix: correct metadata adapter, expose vue item ref and tighten types
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Fixed
baseUrl, updatedmoduleResolutiontoBundler.kyimports to use the public entry point only, removing internal path dependencies.anytypes insrc/vue/index.ts.RepositoryHttpdefault metadata adapter no longer dropscontentLanguagewhen bothContent-LanguageandAccept-Languageresponse headers are present.useRepositoryHttpcreate()andupdate()now expose theitemref, consistently withread().HttpClientInstance.setBearerTokentype signature now matches the implementation (nullable token and options).Added
itemref returned by thecreate()andupdate()Vue composables.Internal
RepositoryHttp.create()/update()and the Vue repository composables refactored to remove duplication.test/folder; declaration emit moved to a dedicatedtsconfig.build.json.